home *** CD-ROM | disk | FTP | other *** search
- Path: risky.ecs.umass.edu!usenet
- From: sebag@ecs.umass.edu
- Newsgroups: comp.lang.c
- Subject: C beginner needs your help ASAP
- Date: Sun, 18 Feb 96 11:35:32 GMT
- Organization: Engineering Computer Services
- Distribution: world
- Message-ID: <4g862f$p0b@risky.ecs.umass.edu>
- NNTP-Posting-Host: alpha.ecs.umass.edu
-
- I am a new C programmmer who desperately needs help.
- I have been digging in the manuals for a way to do this but have still
- come out empty handed. Here is the problem: I want to open files in a while
- loop with different filenames. data0,data1,data2,data3, .. data1000 , ...
- I need to increment an integer each time around then convert it to a string
- and then somehow use strcat to combine the "data" with the integer string.
- After that use fopen(filename, "a");
-
- If you know how to do this, please email me. It would take you 2 minutes but
- it is taking me two days so far. Code would be extremly useful.
- Thanks, sebag@ecs.umass.edu
-